home *** CD-ROM | disk | FTP | other *** search
/ C & C++ Multimedia Cyber Classroom / C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso / src / fig10_01.jar / Ch10 / Fig10_01 / Boss1.h < prev    next >
C/C++ Source or Header  |  1997-10-28  |  370b  |  19 lines

  1. // Fig. 10.1: boss1.h
  2. // Boss class derived from Employee
  3. #ifndef BOSS1_H
  4. #define BOSS1_H
  5. #include "employ2.h"
  6.  
  7. class Boss : public Employee {
  8. public:
  9.    Boss( const char *, const char *, double = 0.0 );
  10.    void setWeeklySalary( double );
  11.    virtual double earnings() const;
  12.    virtual void print() const;
  13. private:
  14.    double weeklySalary; 
  15. };
  16.  
  17. #endif
  18.  
  19.